package com.mt.restaurant.entity.material;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

import com.mt.common.core.annotation.DColumn;
import com.mt.common.core.annotation.DEntity;
import com.mt.common.core.web.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@DEntity(label="材料",comment="",moduleLabel="原材料管理")
@Entity(name="restaurant_material")
@Table(name = "restaurant_material")
@ApiModel(description = "材料:")
public class Material extends BaseEntity implements Serializable{
	private static final long serialVersionUID = 1L;

	@Transient
	@ApiModelProperty(value = "材料类别名称:")
	@DColumn(index=3,label="材料类别",comment="")
	private String materialCategoryName;

	@Transient
	private Double maxPrice;

	@Transient
	private List<SupplyMaterial> supplyMaterialList;

	public Double getMaxPrice() {
		return maxPrice;
	}

	public void setMaxPrice(Double maxPrice) {
		this.maxPrice = maxPrice;
	}

	public String getMaterialCategoryName() {
		return this.materialCategoryName;
	}

	public void setMaterialCategoryName(String materialCategoryName) {
		this.materialCategoryName = materialCategoryName;
	}

	public List<SupplyMaterial> getSupplyMaterialList() {
		return supplyMaterialList;
	}

	public void setSupplyMaterialList(List<SupplyMaterial> supplyMaterialList) {
		this.supplyMaterialList = supplyMaterialList;
	}

}
